import React , { useContext } from 'react';
import {Context} from './index'

function IndexChildren (props){
    console.log(props)
    //!子组件接收穿过来的值context
    const valueContext=useContext(Context)
    return(
        <div>
            <h2>父组件穿过来的值{valueContext.name}{valueContext.count}</h2>
        </div>
    )
}

export default IndexChildren;